package com.example.demo.service.shoppingCart.dto;

import com.example.demo.entity.shoppingCart.ShoppingCartInfo;

public class ShoppingCartInfoDto {
    private Long id;
    private Long goodsId;
    private Long goodsCode;
    private Long number;
    private String price;
    private String sale;

    public ShoppingCartInfo dotoEntity(){
        ShoppingCartInfo shoppingCartInfo = new ShoppingCartInfo();
        shoppingCartInfo.setId(id);
        shoppingCartInfo.setGoodsId(goodsId);
        shoppingCartInfo.setGoodsCode(goodsCode);
        shoppingCartInfo.setNumber(number);
        shoppingCartInfo.setPrice(price);
        shoppingCartInfo.setSale(sale);
        return shoppingCartInfo;
    }
}
